gtkplacessidebar: add API for show drop hints
authorCarlos Soriano <csoriano@gnome.org>
Sat, 11 Apr 2015 15:35:23 +0000 (17:35 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Tue, 16 Jun 2015 14:19:37 +0000 (16:19 +0200)
commit91e1e808624f35f617a8544b7d70591efe280c19
tree1851bf0db20ede671599f79e0d5612054fd82941
parent4371cc8f0162d00c5e74b52499dd5587b8f0b4b8
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.

The context parameter is unused in this patch, but will be
used in next patches when the sidebar will use a GtkListBox.
The reason of being unused now is just convenience.

https://bugzilla.gnome.org/show_bug.cgi?id=747793
docs/reference/gtk/gtk3-sections.txt
gtk/gtkplacessidebar.c
gtk/gtkplacessidebar.h